﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Webform/Layout/DialogFormPage.Master" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="Yule8xWeb.Webform.Agent.Add" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <!-- form start -->
    <form class="form-horizontal" action="{:U('editSave')}" method="post">
        <div class="box-body">
            <div class="form-group">
                <label class="col-sm-2 control-label">用户名</label>
                <div class="col-sm-10">
                    <input type="text" name="user_name" class="form-control input-sm" placeholder="用户名" required="required" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">密码</label>
                <div class="col-sm-10">
                    <div class="input-group">
                        <span class="xsui-password-input">
                            <input type="password" name="password" class="form-control input-sm" placeholder="密码" required="required" /></span>
                        <span class="input-group-btn">
                            <button class="btn btn-default btn-sm xsui-btn-show-password" type="button" title="显示密码"><span class="glyphicon glyphicon-eye-open"></span></button>
                        </span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">代理类型</label>
                <div class="col-sm-10">
                    <select name="agent_type" class="form-control">
                        <option value="normal">普通代理</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">地区</label>
                <div class="col-sm-10">
                    <div class="btn-group btn-group-justified">
                        <div class="btn-group">
                            <div class="input-group">
                                <span class="input-group-addon">省份</span>
                                <select name="agent_type" class="form-control">
                                    <option value="normal">==选择省份==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group">
                            <div class="input-group">
                                <span class="input-group-addon">城市</span>
                                <select name="agent_type" class="form-control">
                                    <option value="normal">==选择城市==</option>
                                </select>
                            </div>
                        </div>
                        <div class="btn-group">
                            <div class="input-group">
                                <span class="input-group-addon">地区</span>
                                <select name="agent_type" class="form-control">
                                    <option value="normal">==选择地区==</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">绑定ID</label>
                <div class="col-sm-10">
                    <input type="email" name="email" class="form-control input-sm" placeholder="绑定微信名称/游戏ID" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">手机号码</label>
                <div class="col-sm-10">
                    <div class="input-group">
                        <input type="text" name="mobile" class="form-control input-sm" placeholder="手机号码" />
                        <span class="input-group-btn">
                            <button class="btn btn-danguage btn-sm" type="button">发送验证码</button>
                        </span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">初始金币数量</label>
                <div class="col-sm-10">
                    <input type="text" name="mobile" class="form-control input-sm" placeholder="初始金币数量" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">初始房卡数量</label>
                <div class="col-sm-10">
                    <input type="text" name="mobile" class="form-control input-sm" placeholder="初始房卡数量" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">备注信息</label>
                <div class="col-sm-10">
                    <input type="text" name="remark" class="form-control input-sm" placeholder="备注信息" />
                </div>
            </div>
        </div>
        <!-- /.box-body -->
        <div class="box-footer">
            <button type="button" class="btn btn-default xsui-btn-close-dialog">取消</button>
            <button type="submit" class="btn btn-primary pull-right">保存</button>
        </div>
        <!-- /.box-footer -->
    </form>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body_foot" runat="server">
    <script>
        // 显示隐藏密码 2017-3-15
        $('.xsui-btn-show-password').mousedown(function () {
            var value = $('.xsui-password-input').find('input').val();
            $('.xsui-password-input').html('<input type="text" name="password" class="form-control input-sm" placeholder="密码" required="required" value="' + value + '" />');
        }).mouseup(function () {
            var value = $('.xsui-password-input').find('input').val();
            $('.xsui-password-input').html('<input type="password" name="password" class="form-control input-sm" placeholder="密码" required="required" value="' + value + '" />');
        })
    </script>
</asp:Content>
